﻿using Validate.Library;

namespace Authority.Model
{
    /// <summary>
    /// 用户密码重置
    /// </summary>
    public class UserForgetPswRequest
    {

        /// <summary>
        /// 登录账号
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "登录账号")]
        public string sLoginName
        {
            get; set;
        }

        /// <summary>
        /// 验证码
        /// </summary>
        [Validate(ValidateType.MatchingRegex | ValidateType.MaxLength, Regex = ValidateRegex.Number, MaxLength = 6, Description = "验证码")]
        public string sValidate
        {
            get; set;
        }

        /// <summary>
        /// 新密码
        /// </summary>
        [Validate(ValidateType.NotEmpty, Description = "新密码")]
        public string sPsw { get; set; }


        /// <summary>
        /// 确认密码
        /// </summary>
        [Validate(ValidateType.NotEmpty, Description = "新密码")]
        public string sConfirmPsw { get; set; }

    }
}
